//
//  MYXSelectPhoteAndVideoTableViewCell.h
//  meiyinxiang
//
//  Created by apple on 2017/11/1.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import <UIKit/UIKit.h>
#define MYXSelectPhoteCellReuseId @"MYXSelectPhoteCellReuseId"
#import <Photos/Photos.h>

@class NIMMessage;

typedef void(^NIMKitLibraryFetchResult)(NSArray *images, NSString *path, PHAssetMediaType type);

typedef void(^NIMKitCameraFetchResult)(NSString *path, UIImage *image);
@interface MYXSelectPhoteAndVideoTableViewCell : UITableViewCell
@property (nonatomic,assign) NSInteger limit;

@property (nonatomic,strong) NSArray *mediaTypes; //kUTTypeMovie,kUTTypeImage
@property (nonatomic,strong) UIViewController *myController;
- (void)fetchPhotoFromLibrary:(NIMKitLibraryFetchResult)result;

- (void)fetchMediaFromCamera:(NIMKitCameraFetchResult)result;
+ (MYXSelectPhoteAndVideoTableViewCell *)loadNibWithCell;

@end
